# 按位与&
'''
101
111
----
101
'''
print(5 & 7)
# 按位或 |
'''
011
100
----
111
'''
print(3 | 4)

# 按位异或
'''
010
100
----
110
'''
print(2 ^ 4)
# 按位取反~
'''
01
---
10
110
'''
print(~1)
# 左移 右移
'''
101
----
10100
'''
print(5<<2)
